\hypertarget{classsp_base}{
\section{spBase Class Reference}
\label{classsp_base}\index{spBase@{spBase}}
}


Base class for managing SmashMiner shader progams.  


Inheritance diagram for spBase:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.333333cm]{classsp_base}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsp_base_aad881373ff6fff704c752b0d771d018e}{spBase} (QGLShader $\ast$, QGLShader $\ast$)
\begin{DoxyCompactList}\small\item\em {\ttfamily \hyperlink{classsp_base}{spBase}} class constructor. \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_a3dacccf1b54a0b96d12a75510874ed1a}{
\hyperlink{classsp_base_a3dacccf1b54a0b96d12a75510874ed1a}{$\sim$spBase} ()}
\label{classsp_base_a3dacccf1b54a0b96d12a75510874ed1a}

\begin{DoxyCompactList}\small\item\em {\ttfamily \hyperlink{classsp_base}{spBase}} class destructor \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_ae675d70a4f8f0d228805ebee8bb6ad22}{
void \hyperlink{classsp_base_ae675d70a4f8f0d228805ebee8bb6ad22}{setMatrix} (QMatrix4x4 \&m)}
\label{classsp_base_ae675d70a4f8f0d228805ebee8bb6ad22}

\begin{DoxyCompactList}\small\item\em Set the ''matrix'' attribute to shader program. \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_a9dd8cabf31f5ccf7d38d186451397c5d}{
void \hyperlink{classsp_base_a9dd8cabf31f5ccf7d38d186451397c5d}{enableVertexArray} ()}
\label{classsp_base_a9dd8cabf31f5ccf7d38d186451397c5d}

\begin{DoxyCompactList}\small\item\em Enable vertex array ''vertex''. \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_a20bb1284418ea5f4324554eb06e2612d}{
void \hyperlink{classsp_base_a20bb1284418ea5f4324554eb06e2612d}{setVertexArray} (GLfloat $\ast$v)}
\label{classsp_base_a20bb1284418ea5f4324554eb06e2612d}

\begin{DoxyCompactList}\small\item\em Set array of vertex values. \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_a764c150cf24cc4718a29e31bdec20263}{
void \hyperlink{classsp_base_a764c150cf24cc4718a29e31bdec20263}{disableVertexArray} ()}
\label{classsp_base_a764c150cf24cc4718a29e31bdec20263}

\begin{DoxyCompactList}\small\item\em Disable vertex array. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classsp_base_a7f3501d065e5bf69791538f93ad8cd98}{
int \hyperlink{classsp_base_a7f3501d065e5bf69791538f93ad8cd98}{matrixLoc}}
\label{classsp_base_a7f3501d065e5bf69791538f93ad8cd98}

\begin{DoxyCompactList}\small\item\em Attribute location for ''matrix'' attribute. \item\end{DoxyCompactList}\item 
\hypertarget{classsp_base_a16e33ffe9a3e36597ae3300c84833290}{
int \hyperlink{classsp_base_a16e33ffe9a3e36597ae3300c84833290}{vertexLoc}}
\label{classsp_base_a16e33ffe9a3e36597ae3300c84833290}

\begin{DoxyCompactList}\small\item\em Attribute location for ''vertex'' attribute. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for managing SmashMiner shader progams. Allows OpenGL shader programs to be linked and used. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classsp_base_aad881373ff6fff704c752b0d771d018e}{
\index{spBase@{spBase}!spBase@{spBase}}
\index{spBase@{spBase}!spBase@{spBase}}
\subsubsection[{spBase}]{\setlength{\rightskip}{0pt plus 5cm}spBase::spBase (
\begin{DoxyParamCaption}
\item[{QGLShader $\ast$}]{ vshader, }
\item[{QGLShader $\ast$}]{ fshader}
\end{DoxyParamCaption}
)}}
\label{classsp_base_aad881373ff6fff704c752b0d771d018e}


{\ttfamily \hyperlink{classsp_base}{spBase}} class constructor. 


\begin{DoxyParams}{Parameters}
\item[{\em vshader}]Vertex shader program \item[{\em fshader}]Fragment shader program \end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
shaderprograms.h\item 
shaderprograms.cpp\end{DoxyCompactItemize}
